from flask import Flask, make_response, request
from flask_cors import CORS
import json
from mission import Mission
from configure import Configure

app = Flask(__name__)
app.debug = False
app.config["SECRET_KEY"] = "PaSsw0rD@1234!@#$"

CORS(app, supports_credentials=True) # 允许跨域

app.register_blueprint(Mission)
app.register_blueprint(Configure)

@app.route("/", methods = ["GET", "POST"])
def main():
   return ""

if __name__ == "__main__":
    app.run(host = "0.0.0.0", port = 4729, debug = False)